#include "peformat.h"

#define DELORDINAL(ptr) (char*)ptr+2

void print(DWORD a, DWORD b)
{
	char* str = DELORDINAL(b);
	printf("%s:%s\n", a, str);
}

int main()
{
	char* fileImage = NULL;
	char* dllName = "C:\\masm32\\source\\winResult.dll";
	char* hMod = GetFileImage(dllName);
	gImportInfo = print;
	GetImportDllInfo((char*)hMod);

	return 0;
}